package com.cskaoyan.service.coupon.admin;

import com.cskaoyan.bean.Coupon;
import com.cskaoyan.bean.CouponUser;
import com.cskaoyan.bean.ListData;
import com.cskaoyan.bean.coupon.CreateCouponBO;

import java.util.List;

public interface CouponService {


    ListData<Coupon> list(String page, String limit, String sort, String order, String name, String type, Integer status);

    boolean delete(int id);

    boolean create(CreateCouponBO createCouponBO);

    int lastInsertId();

    Coupon selectByPrimaryKey(int id);

    boolean update(Coupon coupon);

    ListData<CouponUser> listUser(String page, String limit, String userId, String status, String couponId, String sort, String order);

}
